import request from '@/utils/request'

// 获取路由
export const test = () => {
  return request({
    url: '/test',
    method: 'get'
  })
}


export const getNetworkList = () => {
  return request({
    url: '/getNetworkList',
    method: 'get'
  })
}
export const getWifiList = () => {
  return request({
    url: '/getWifiList',
    method: 'get'
  })
}

export const updateNetWork = (data) => {
  return request({
    url: '/updateNetWork',
    method: 'post',
    data:data
  })
}
export const updateWifi = (data) => {
  return request({
    url: '/updateWifi',
    method: 'post',
    data:data
  })
}